package com.example.webcomen.Service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.webcomen.Mapper.UserMapper;
import com.example.webcomen.Model.User;
import com.example.webcomen.Service.BaseInfoService;
import com.example.webcomen.Service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author zinc
* @description 针对表【user】的数据库操作Service实现
* @createDate 2022-11-22 16:15:37
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService {
    @Autowired
    BaseInfoService baseInfoService;

    @Override
    public User getByUserName(String username) {
        User user=baseInfoService.selectByUserName(username);
        return user;
    }
}




